<?php

declare(strict_types=1);
namespace App\Controller\Api;

use App\Service\CustomService\CustomService;
use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use App\Controller\AbstractController;

/**
 * @Controller(prefix="/CustomService")
 * 关区查询服务
 */
class CustomController extends AbstractController
{
    /**
     * 批量获取关区列表
     * @RequestMapping(path="QueryCustomList", methods="POST")
     */
    public function queryCustomList(RequestInterface $request,CustomService $customService)
    {
        return $customService->queryCustomList($request->getParsedBody());
    }

     /**
     * 批量获取关区列表
     * @RequestMapping(path="QueryCustomInfo", methods="POST")
     */
    public function queryCustomInfo(RequestInterface $request,CustomService $customService)
    {
        return $customService->queryCustomInfo($request->getParsedBody());
    }

}